package a51qindian.com.comprehensive.activity;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;

import com.li.widget.MultipleLayout;
import com.li.widget.TopNavigationBar;
import com.li.widget.TopSwitcher;

import java.util.ArrayList;
import java.util.List;

import a51qindian.com.comprehensive.R;
import a51qindian.com.comprehensive.base.QDBaseActivity;
import a51qindian.com.comprehensive.fragment.WithdrawVerifyFragment;
import butterknife.BindView;


/**
 * Author: Li
 * Date: 2017/9/22 0022
 * Description: 城市  商铺提现
 */


public class ShopGetCrashApplyActivity extends QDBaseActivity {


    @BindView(R.id.top_navigation)
    TopNavigationBar mTopNavigation;
    @BindView(R.id.layout_content)
    MultipleLayout mLayoutContent;
    @BindView(R.id.top_switcher)
    TopSwitcher mTopSwitcher;
    @BindView(R.id.pager)
    ViewPager mPager;

    private List<Fragment> mFragmentList;
    @Override
    protected int getLayoutId() {
        return R.layout.activity_shop_get_crash_apply;
    }

    @Override
    protected void initSth() {
        super.initSth();
        mTopNavigation.setNavigationBarListener(this);
        mFragmentList=new ArrayList<>();
        mFragmentList.add(WithdrawVerifyFragment.newInstance(WithdrawVerifyFragment.VERIFY_UNFINISHED));
        mFragmentList.add(WithdrawVerifyFragment.newInstance(WithdrawVerifyFragment.VERIFY_FINISHED));
        mPager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) {
            @Override
            public Fragment getItem(int position) {
                return mFragmentList.get(position);
            }

            @Override
            public int getCount() {
                return mFragmentList.size();
            }
        });
        mTopSwitcher.setupViewPager(mPager);
    }


}

